/*
 * Conceptual.java
 *
 * Created on March 27, 2007, 7:18 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.samlam;

/**
 * Conceptual
 * @author BrianB
 */
public class Conceptual extends Product {
    
    private boolean dirty = false;
    private boolean alreadyInDB = false;
    private String cpguid; //fk references product
    private String prodname;
    private String description;
    private double avgcost;
    
    /**
     * Creates a new instance of ConceptualProductBO
     * @param id id
     */
    public Conceptual(String id) {
        super(id);
    }
    
    /**
     * conceptual isdirty
     * @return isdirty
     */
    public boolean isDirty() {
        return dirty;
    }
    
    /**
     * setDirty
     * @param dirty dirty
     */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }
    
    /**
     * is already in db
     * @return is already in db
     */
    public boolean isAlreadyInDB() {
        return alreadyInDB;
    }
    
    /**
     * set in db
     * @param alreadyInDB already in db
     */
    public void setAlreadyInDB(boolean alreadyInDB) {
        this.alreadyInDB = alreadyInDB;
    }
    
    /**
     * get cp Guid
     * @return return cpGUID
     */
    public String getCpguid() {
        return cpguid;
    }
    
    /**
     * get Product Name
     * @return get product Name
     */
    public String getProdname() {
        return prodname;
    }
    
    /**
     * setProduct Name
     * @param prodname product name
     */
    public void setProdname(String prodname) {
        this.prodname = prodname;
        this.dirty = true;
    }
    
    /**
     * get description
     * @return description
     */
    public String getDescription() {
        return description;
    }
    
    /**
     * set description
     * @param description description
     */
    public void setDescription(String description) {
        this.description = description;
        this.dirty = true;
    }
    
    /**
     * average cost
     * @return average cost
     */
    public double getAvgcost() {
        return avgcost;
    }
    
    /**
     * set average cost
     * @param avgcost average cost
     */
    public void setAvgcost(double avgcost) {
        this.avgcost = avgcost;
        this.dirty = true;
    }
    
}